package com.ruoyi.asktreat.controller;

import com.ruoyi.asktreat.domain.AskTreat;
import com.ruoyi.asktreat.service.IAskTreatService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Random;
import java.util.UUID;

/**
 * 治疗管理Controller
 * 
 * @author ruoyi
 * @date 2025-02-26
 */
@RestController
@RequestMapping("/mp/ask/treat")
public class MpAskTreatController extends BaseController
{
    @Autowired
    private IAskTreatService askTreatService;

    @GetMapping(value = "/{treatId}")
    public AjaxResult getInfo(@PathVariable("treatId") Long treatId)
    {
        return success(askTreatService.selectAskTreatByTreatId(treatId));
    }
}
